#ifndef _CPU_IO_H_
#define _CPU_IO_H_


#define __REG(x)		(*(volatile unsigned int *)(x))

#define read8(x)		(*(volatile unsigned char *)(x))
#define	read16(x)		(*(volatile unsigned short *)(x))
#define read32(x)		(*(volatile unsigned int *)(x))

#define write8(v,a)	(*(volatile unsigned char *)(a) = (v))
#define write16(v,a)	(*(volatile unsigned short *)(a) = (v))
#define write32(v,a)	(*(volatile unsigned int *)(a) = (v))


#endif /*_CPU_IO_H_*/

